<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DouPHP 管理中心 - 自定义导航栏 </title>
<meta name="Copyright" content="Douco Design." />
<link href="css/public.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/global.js"></script>
<script type="text/javascript" src="js/jquery.tab.js"></script>
</head>
<body>
<div id="dcWrap">
<?php include 'adminhead.php'?>;
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">DouPHP 管理中心<b>></b><strong>自定义导航栏</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
    <h3><a href="addnav.php" class="actionBtn">添加导航</a>自定义导航栏</h3>
        <div class="navList">
     <ul class="tab">
      <li><a href="nav.php" class="selected">主导航</a></li>
      
     </ul>
     <table width="100%" border="0" cellpadding="10" cellspacing="0" class="tableBasic">
      <tr>
       <th width="113" align="center">导航名称</th>
       <th align="left">链接地址</th>
       <th width="80" align="center">排序</th>
       <th width="120" align="center">操作</th>
      </tr>
      <?php foreach($navrows as $row)
        {            
        ?>
            <tr<?php 
            if ($row['id']==$id)  echo "class='active'";
            ?>>
       <td> <?php echo $row['navname']?></td>
       <td><?php echo $row['linkurl']?></td>
       <td align="center"><?php echo $row['sort']?></td>
       <td align="center"><a href="editnav.php?id=<?php echo $row['id']?>">编辑</a> | <a href="delnav.php?id=<?php echo $row['id']?>">删除</a></td>
      </tr>
      <?php
        }
        ?>
            
           </table>
    </div>
               </div>
    <div class="idTabs">
      <ul class="tab">
      
        <li><a href="#nav_defined">编辑导航</a></li>
      </ul>
      <div class="items">
        
        <div id="nav_defined">
         <form action="nav.php?rec=insert" method="post">
          <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tableBasic">
           <tr>
            <td width="80" height="35" align="right">导航名称</td>
            <td>
             <input type="text" name="nav_name" value="<?php echo $navr['navname'];?>" size="40" class="inpMain" />
            </td>
           </tr>
           
           <tr>
            <td height="35" align="right">链接地址</td>
            <td>
             <input type="text" name="guide" value="<?php echo $navr['linkurl'];?>" size="80" class="inpMain" />
            </td>
           </tr>
           <tr>
           
            
           </tr>
           <tr>
            <td height="35" align="right">排序</td>
            <td>
             <input type="text" name="sort" value="<?php echo $navr['sort'];?>" size="5" class="inpMain" />
            </td>
           </tr>
           <tr>
            <td></td>
            <td>
             <input type="hidden" name="token" value="30fa081a" />
             <input type="hidden" name="nav_menu" value="nav,0" />
             <input name="submit" class="btn" type="submit" value="提交" />
            </td>
           </tr>
          </table>
         </form>
        </div>
      </div>
    </div>

 </div>
 <div class="clear"></div>
<div id="dcFooter">
 <div id="footer">
  <div class="line"></div>
  <ul>
   版权所有 © 2013-2015 漳州豆壳网络科技有限公司，并保留所有权利。
  </ul>
 </div>
</div><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>
</html>